<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>日志管理</title>
<link href='https://fonts.googleapis.com/css?family=PT+Sans:400,700'
	rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="../../css/style.css">
<!-- Resource style -->
<link rel="stylesheet"
	href="../../plugins/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet"
	href="../../plugins/bootstrap/css/bootstrap-table.min.css">
<link rel="stylesheet"
	href="../../plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css">
<link rel="stylesheet" href="../../css/dataAdd.css">
<link rel="stylesheet" href="../../css/form.css">
</head>
<style type="text/css">
.input-group[class*=col-] {
	float: left;
}
</style>
<body>
	<!-- <ol class="breadcrumb">
		<li><a href="#">系统采集</a></li>
		<li><a href="#">日志管理</a></li>
	</ol> -->
	<div class="titlediv">系统管理/日志管理</div>
	<div class="container-fluid laydiv">
		<form id="addForm" enctype="text/plain">
			<div class="row">
				<div class="col-md-1">
					<span>操作人员：</span>
				</div>
				<div class="col-md-3">
					<input class="form-control" type="text" name="czry" />
				</div>
				<div class="col-md-1">
					<span>操作类型：</span>
				</div>
				<div class="col-md-3">
					<select id="czlx" name="czlx" class="form-control">
						<option value="">全部</option>
						<option value="1">登录</option>
						<option value="2">登出</option>
						<option value="3">插入</option>
						<option value="4">更新</option>
						<option value="5">删除</option>
						<option value="6">提交</option>
					</select>
				</div>
				<div class="col-md-1">
					<span>操作模块：</span>
				</div>
				<div class="col-md-3">
					<select id="czmk" name="czmk" class="form-control">
						<option value="">全部</option>
						<option value="基表管理">基表管理</option>
						<option value="用户管理">用户管理</option>
						<option value="机构管理">机构管理</option>
						<option value="权限管理">权限管理</option>
						<option value="数据采集">数据采集</option>
						<option value="数据编辑">数据编辑</option>
						<option value="资源管理">资源管理</option>
					</select>
				</div>
			</div>
			<div class="row">
				<div class="col-md-1">
					<span>操作内容：</span>
				</div>
				<div class="col-md-3">
					<input class="form-control" type="text" name="nrms" />
				</div>
				<div class="col-md-1">
					<span>操作时间：</span>
				</div>
				<div class="col-md-6">
					<div class="input-group date form_date1 col-md-3" data-date=""
						data-date-format="yyyy-MM-dd" data-link-field="dtp_input2"
						data-link-format="yyyy-mm-dd">
						<input class="form-control" size="16" type="text" value=""
							readonly id="kssj" name="kssj" style="float: left;"> <span
							class="input-group-addon"><span
							class="glyphicon glyphicon-calendar"></span></span>
					</div>


					<span style="float: left; padding: 5px;">至</span>
					<div class="input-group date form_date1 col-md-3" data-date=""
						data-date-format="yyyy-MM-dd" data-link-field="dtp_input2"
						data-link-format="yyyy-mm-dd">
						<input class="form-control" size="16" type="text" value=""
							readonly id="jssj" name="jssj"> <span
							class="input-group-addon"><span
							class="glyphicon glyphicon-calendar"></span></span>
					</div>
				</div>
			</div>
		</form>
		<div class="row">
			<div class="querybtnDiv">
				<button type="button" class="btn btn-warning btn-warning" onclick="query();">检索</button>
				<button type="reset" class="btn btn-default" onclick="reset()">清除</button>
			</div>
		</div>
		<!-- <button type="button" class="btn btn-warning ladda-button"
			id="addDataButton" style="margin: 10px 30px;" onclick="addData();">录入数据</button> -->
		<table class="table_list_box" id="data-table"></table>
	</div>

	<!-- 录入数据的modal 结束 -->
</body>
<script src="../../js/jquery-2.0.0.min.js"></script>
<script src="../../plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="../../plugins/bootstrap/js/bootstrap-table.min.js"></script>
<script src="../../plugins/bootstrap/js/bootstrap-table-zh-CN.js"></script>
<script
	src="../../plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script src="../../js/common.js"></script>
<script type="text/javascript">
	//type有user和expert两个值，表示是数据录入和专家录入
	var columns= [ { title: '序号',width:'5%',formatter: function (value, row, index) {return index+1;}},
	                //{ title: '操作人员',field: 'czry'},
	                { title: '操作人员', field: 'czryxm' },
	                { title: '操作模块', field: 'czmk' },
	                { title: '操作类型', field: 'czlxname' },
	                { title: '操作时间', field: 'czsj' },
	                { title: '内容描述', field: 'nrms' }
	            ];
	$(document).ready(function(){
		createTable('#data-table', 'cnmuseum/mbxtgllogservlet.getData.do', 'id', columns,'');
	});
	datetime('.form_date1');
function query(){
	var params=$('#addForm').serializeObject();
	$('#data-table').bootstrapTable('destroy');
	createTable('#data-table', 'cnmuseum/mbxtgllogservlet.getData.do', 'id', columns,params);
}
function reset(){
	$("#addForm")[0].reset();
}
</script>
</html>